package com.xk.school_device.common;

import com.xk.school_device.service.IMenusService;
import com.xk.school_device.service.IRolesService;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Title: UserContext
 * @Author xk
 * @Package com.xk.school_device.common
 * @Date 2025/4/16 12:01
 * @description:
 */
@Component
@Data
public class UserContext {
    public static IRolesService roleService;
    public static IMenusService menuService;

    @Autowired
    public void setRoleService(IRolesService roleService) {
        UserContext.roleService = roleService;
    }

    @Autowired
    public void setMenuService(IMenusService menuService) {
        UserContext.menuService = menuService;
    }
}
